/**
 * Created by kenny on 2015/6/28.
 */
var React = require("react");


module.exports = React.createClass({

	handleClick: function(e){

		e.preventDefault();
		
		this.props.details(e.target.href);
		

	},

	render: function(){

	 console.log(this.props.model);

		return (

		<a className="list-group-item" onClick={this.handleClick} href={"/detail"+this.props.model.get("href")}>
		{this.props.model.get("text")}</a>
		)

	}

});

